{{- range $index, $element := first .Site.Params.frontpageposts (where .Site.Pages "Section" "post") }}
    {{- if (eq $index 0) }}
        {{- .Render "card-8" }}
    {{- else }}
        {{- .Render "card-12" }}
    {{- end }}
{{- end }}
    